package com.lxl.securitypermission.mapper;

import com.lxl.securitypermission.entity.SMenu;
import com.lxl.securitypermission.vo.TreeMenu;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 绫小路
 * @date 2020/12/31 20:47
 * @description
 */
public interface SMenuMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(SMenu record);

  SMenu selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SMenu record);

  int updateByPrimaryKey(SMenu record);

  List<SMenu> get(Integer userId);

  List<TreeMenu> getTreeMenu(@Param("status") Integer status);

  List<Integer> getSonMenuId(@Param("id") Integer id);

  int del(@Param("ids") List<Integer> ids);
}
